<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<table align="center" class="wtable">
  <caption>选择要发起的流程</caption>
  <tr>
      <th>流程名称</th>
   
    <th>启动</th>
  </tr>
  <c:forEach items="${workflowDefines}" var="workflow">
      <c:if test="${workflow.enabled}">
  <tr>
    <td>
    <span style="color:green;font-weight:bolder">
					${workflow.workflowName}
					</span>
        
    </td>   
    <td>
     <button class="processButton" name="${workflow.workflowName}">
					启动流程➹					
					</button>
    </td>
  </tr>
  </c:if>    		    
		</c:forEach>
</table>
<style>

table.wtable{
   width:70%;
   border:#ddd 1px dotted;
}
table.wtable caption{
   font-weight:bolder;
   font-size:22px;
}
table.wtable tr:hover{
    background-color:#ccc;
    border:#aaa 1px solid;
}
table.wtable tr td{
    border:#bbb 1px double;
}
table.wtable tr th{
    font-size:16px;
    height:18px;
    
}
</style>
<script type="text/javascript">
    $(function() {
		$("button.processButton").bind("click",function(){
			  var name = $(this).attr("name");
			  doPost("workflow/start-work-input","workflowName="+name);	
	    }).button();
	});	
</script>
